package freespiritsocial.io.user.ui.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.previewlibrary.view.BasePhotoFragment
import freespiritsocial.io.user.R
import freespiritsocial.io.user.data.UserViewInfo
import freespiritsocial.io.user.ui.activity.PerViewVideoAct

/**
 * author  yangc
 * date 2017/11/22
 * E-Mail:yangchaojiang@outlook.com
 * Deprecated:
 */
class UserFragment: BasePhotoFragment() {

    override fun onViewCreated(view: View,savedInstanceState: Bundle?) {
        super.onViewCreated(view,savedInstanceState)
        btnVideo.setOnClickListener {
            PerViewVideoAct.launch(requireContext(),beanViewInfo as UserViewInfo)
        }
        /*imageView.setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View v) {
                Log.d("SmoothImageView","onLongClick");
                Toast.makeText(getContext(), "长按事件:" + b.getUser(), Toast.LENGTH_LONG).show();
                return false;
            }
        });*/
    }

    override fun onCreateView(inflater: LayoutInflater,container: ViewGroup?,savedInstanceState: Bundle?): View? {
        return inflater.inflate(R.layout.frg_image_photo_layout,container,false)
    }
}